package com.onpositive.collections;

import java.io.Serializable;

import com.onpositive.units.ParsedDimension;




public class CounterModificator implements Serializable {
	
	private static final long serialVersionUID = 5081008876550256363L;

	public static final int INSTRUCTION_CODE_ADD = 0 ;
	
	public static final int INSTRUCTION_CODE_SET = 1 ;
	
	private static final String[] instructionTitle = new String[]{ "add", "set" } ;
	
	public CounterModificator(ParsedDimension pDim, int instructionCode) {
		super();
		this.pDim = pDim;
		this.instructionCode = instructionCode;
	}
	
	ParsedDimension pDim ;	

	int instructionCode ;

	public ParsedDimension getDim() {
		return pDim;
	}

	public int getInstructionCode() {
		return instructionCode;
	}
	
	@Override
	public String toString(){
		return "" + instructionTitle[instructionCode] + " " + pDim.toString() ;
	}
}
